
#include <sys/neutrino.h>

#include "Timer.h"
#include "HAWThread.h"

#ifndef MYRECV_H_
#define MYRECV_H_

class MyRecv: public thread::HAWThread {
private:

	void execute(void*);

	int chid;
	int value;
	int value_sec;
	int value_nsec;
	int timerID;
	int timerChanneID;
	bool running;
	Timer * timer;

public:

	MyRecv( int chid, int value, int value_sec, int value_nsec );
	Timer* getInstance();
	void startTimer();
	void shutdown();
	virtual ~MyRecv();
};
#endif
